

new Vue({
   el:"#chatList",
   template:"<div>" +
       "<div class='container'><div class='col-md-2' v-for='(chatList,index) of chatList' v-bind:key='chatList.index'><a :href=\"'http://localhost:8080/api/chatroom/'+chatList.chatroomName+''\">{{chatList.chatroomName}}</a> </div></div>" +
       "</div>" ,
    data(){
       return {
           chatList:[{chatroomName:"聊天室1"},{chatroomName:"聊天室2"}]
       }
    }
});
